﻿using System;
using Microsoft.VisualStudio.TestTools.UnitTesting;

namespace Common.Test
{
    [TestClass]
    public class SecurityUT
    {
        [TestMethod]
        public void Success()
        {
            string abc = Security.Md5("10051ffffffff-e4d4-f70e-ffff-ffffc3d2ddc5com.imdgof.banga.vn.apk1300410451542224280FB53F2179334E8394944E5B526E0A62");
            string xyz = Security.Md5(10051, "ffffffff-e4d4-f70e-ffff-ffffc3d2ddc5", "com.imdgof.banga.vn.apk",
                                      "130041045154222428", "0FB53F2179334E8394944E5B526E0A62");
     
            //MySecurity.EncryptMD5(       request.UserName, request.Title, request.NickName, request.FullName, request.Birthday, request.DeviceId)
            string xxx = Security.EncryptMD5("84909132622", "Nữ", "sũ", "taokhongbit", "05/02/2013",
                                             "351869058577423dc6e908bbc5c3b08",
                                             "YIkCDXziy402Sgt7BbPG/ihKkRc=");
            //string yyy = Security.EncryptMD5WithSeparate("|", 8, 8, 0, "10500.00", true);
            string zzz = Security.EncryptMD5WithSeparate("|", 8, "84909132622", "taokhongbit", 1, 0, "fffffg");
            //var checksum = MySecurity.EncryptMD5WithSeparate("|", user.UserID, user.UserName, user.FullName, user.UserType, user.Status, user.NickName);
            Assert.IsNotNull(abc);
        }
    }
}
